<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>自助注册</title>
  <link rel="stylesheet" href="../static/framework/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/framework/reset.css">
  <link rel="stylesheet" href="../static/css/register.css">
  <style>

    /* 样式化表单项 */
    .formbox {
      list-style-type: none;
      padding: 0;
    }

    .formbox li {
      margin-bottom: 10px;
    }

    .formbox input[type="text"],
    .formbox input[type="password"] {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
      font-size: 14px;
    }

    .formbox button {
      width: 100%;
      padding: 10px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 16px;
    }

    .formbox button:hover {
      background-color: #45a049;
    }
  </style>
</head>

<body>
  <div class="wrapper">
    <!-- 标题区 -->
    <header>
      <!--没有添加返回跳转-->
      <i class="fa fa-angle-left fa-2x" onclick="location.href='/login'"></i>
      <p>自助注册</p>
      <p></p>
    </header>
    <!-- 表单区域 -->
    <form action="/user/register" method="post">
      <ul class="formbox">
        <li>
          <label for="phone">手机号：</label>
          <input type="text" id="phone" name="phone" placeholder="请输入手机号">
        </li>
        <li>
          <label for="password">密码：</label>
          <input type="password" id="password" name="password" placeholder="请输入密码">
        </li>
        <li>
          <label for="remPassword">确认密码：</label>
          <input type="password" id="remPassword" name="remPassword" placeholder="请再次输入密码">
        </li>
        <li>
          <div style="color: red" th:text="${session.msg}"></div>
        </li>

        <li>
          <div class="btn">
            <button type="submit">注册</button>
          </div>
        </li>
      </ul>
    </form>

  </div>
</body>

</html>